package com.ltmall.api.controller;

import com.ltmall.api.manager.MembershipManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@Controller
@RequestMapping("/hehe")
public class TestController {

    @Autowired
    private MembershipManager membershipManager;

    @RequestMapping("/test.do")
    @ResponseBody
    public Object test(HttpServletRequest request, HttpServletResponse response) {
        return membershipManager.getDeductible(1008590);
    }

}
